--[[
    房间实体
]]--

local blaze = require "blaze"
local game = require "club.threecard.bjracing"
local Room = require "entities.Room"
local gamelib = require "club.threecard.gamelib"

local InGameServerOperationCenter = require "GameFramework/InGame/InGameServerOperationCenter"

local M = game.kbe.entity("GDPRoom", Room)

function M:__init__()
    Room.__init__(self)
end

--[[ =============================
             服务端接口
================================== ]]--

--[[ =============================
             服务端回调
================================== ]]--

function M:on_phase(phaseId, countdown)
    game.store.ingame.on_phase({phaseId = phaseId, countdown = countdown});
end

function M:on_statistics(info)
    game.store.ingame.on_statistics({info = info});
end

function M:on_messages(messages)
    gamelib.GameCore.GameMsgCenter.Push(function()
        self.log.debug("on_messages:"..messages);
     end)
end

return M